home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
Scrolling Panel
/
CodeWarrior⁄PPC Version
/
TestSDLNative.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-13
|
1KB
|
65 lines
/*************************************************************************************************
*
*
* TestScrollDialogNative.c
*
* -a skanky Native App for testing PowerPC version of ScrollDialogLib
*
* 13/7/94
*
*
*************************************************************************************************/
#include "ScrollDialog.h"
#define kAlertBoxID 128
#define kTextUserItemID 2
#define kTextResourceID 128
#define kCanBeEdited TRUE
void main(void)
{
short aHit;
DialogPtr sdw;
InitGraf(&qd.thePort); /* mac toolbox init stuff */
InitFonts();
InitWindows();
InitMenus();
TEInit();
InitDialogs(NIL);
SetWatchCursor();
FlushEvents(everyEvent,0);
MaxApplZone();
MoreMasters();
InitCursor();
sdw = GetTextDialog(kAlertBoxID,kTextUserItemID,kTextResourceID,kCanBeEdited);
if (sdw)
{
ShowWindow(sdw);
SelectWindow(sdw);
aHit = 0;
while(aHit == 0)
ModalTDDialog(&aHit);
DisposeTDDialog(sdw);
}
}
int SetWatchCursor(void)
{
CursHandle watch;
watch = GetCursor(watchCursor);
SetCursor(*watch);
}